#ifndef SEQIOT_IEC104_H
#define SEQIOT_IEC104_H

#include "../iec60870/iec101.h"

typedef struct _asdu_dui_104_t {
    asdu_dui_t dui;
    uint16_t rtu; //公共地址
}__attribute__((packed)) asdu_dui_104_t;

//typedef enum _type_id_104_e {
//} type_id_104_e;

#define LEN_ASDU (256-6-6)
#define LEN_LRU (3)
#define LEN_CP56 (7)
#define MAX_VALS_QDS (LEN_ASDU/(LEN_LRU+1))
#define MAX_VALS_16BIT (LEN_ASDU/(LEN_LRU+2+1))
#define MAX_VALS_32BIT (LEN_ASDU/(LEN_LRU+4+1))
#define MAX_VALS_32BIT_CP56 (LEN_ASDU/(LEN_LRU+4+1+LEN_CP56))

#endif //SEQIOT_IEC104_H
